package com.xm.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 种类实体类
 * @author 康文程
 * @date 2023-12-27 上午 09:26
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class Class {
    /**
     * 类别编号
     */
    private Integer classId;
    /**
     * 类别名称
     */
    private String className;
    /**
     * 大类别Id
     */
    private Integer categoryId;
    /**
     * 大类别
     */
    private Category category;

    public Class(Integer classId, String className) {
        this.classId = classId;
        this.className = className;
    }

    public Class(String className, Category category) {
        this.className = className;
        this.category = category;
    }
}
